import type { ProColumns } from '@ant-design/pro-table';

export type columnsDataType = {
  totalSupply: number;
  fragmentsSerialNo: string;
  quantity: number;
};

const columnsData: ProColumns<columnsDataType>[] = [
  {
    title: '序号',
    dataIndex: 'order',
    valueType: 'indexBorder',
    hideInSearch: true,
    width: 50,
    fixed: 'left',
  },
  {
    title: '碎片编号',
    dataIndex: 'fragmentsSerialNo',
    width: 100,
    hideInSearch: true,
  },
  {
    title: '总供应量',
    dataIndex: 'totalSupply',
    width: 100,
    hideInSearch: true,
  },
  {
    title: '碎片预览',
    dataIndex: 'metadataImage',
    width: 100,
    hideInSearch: true,
    valueType: 'image',
  },
  {
    title: '库存',
    dataIndex: 'inventory',
    width: 100,
    hideInSearch: true,
  },
  {
    title: '操作',
    dataIndex: 'action',
    hideInSearch: true,
    width: 100,
    fixed: 'right',
  },
];

export default columnsData;
